<template>
	<view>
		
	</view>
</template>

<script>
import { data } from '../../uni_modules/uview-ui/libs/mixin/mixin';
	

	export default {
		data() {
			return {
				
				
				
			}
		},
		

		methods: {
			codesendMessage() {
			  const message = this.messageInput; // 假设输入框的v-model为messageInput
			  socket.emit('message', message);
			  this.messageInput = ''; // 清空输入框
			}
			
		
		},
		onLoad() {
			uni.connectSocket({
				url:'ws://localhost:8088/webSocket/11',
				success: data=>{
					console.log(data);
				}
			})
		}
		
		
	}
</script>

<style>

</style>
